/**********************************************************
 * created by deming.su on 2020-07-28 for handler file
 **********************************************************/

/**
 * 日志输出
 * @param {String} str 需要打印的消息
 * @param {Object} param 需要打印的消息
 */
const logs = (str, param) => {
    if (!!param) {
        console.log(`>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>${str} start`);
        console.log(param);
        console.log(`>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>${str} end`);
    } else {
        console.log(`>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>${str}`);
    }
};

/** 导出 */
module.exports = {
    logs
};